*****************************************************
* 				RETURNS MASTER FILE 				*
*****************************************************


**************************************************************************************

* This file generates the estimation data for
* Aghion, Akcigit, Hyytinen & Toivanen : 
* A year older, a year wiser (and farther from the frontier):invention rents and human capital depreciation

**************************************************************************************


local mydate: di %tdDNCY date(c(current_date), "DMY")
capture: log close
log using "O:\returns\returns_REStat_replication_data_`mydate'.log", replace
cd "W:\returns"
global estimation "W:\returns"

do "returns_DATAPREP_1_CLEANED_2022_08_22"  // data creation
do "returns_DATAPREP_2_2022_08_22"			// matching 

log close